class GMAnimaCommentModel {
  int? status;
  String? msg;
  List<GMAnimaCommentData>? data;

  GMAnimaCommentModel({this.status, this.msg, this.data});

  GMAnimaCommentModel.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    msg = json['msg'];
    if (json['data'] != null) {
      data = <GMAnimaCommentData>[];
      json['data'].forEach((v) {
        data!.add(new GMAnimaCommentData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class GMAnimaCommentData {
  String? id;
  String? publishId;
  String? replyId;
  String? userId;
  String? toUser;
  String? time;
  int? number;
  String? state;
  String? content;
  GMAnimaCommentUser? user;
  String? files;
  int? reply;
  String? cart;

  GMAnimaCommentData(
      {this.id,
      this.publishId,
      this.replyId,
      this.userId,
      this.toUser,
      this.time,
      this.number,
      this.state,
      this.content,
      this.user,
      this.files,
      this.reply,
      this.cart});

  GMAnimaCommentData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    publishId = json['publishId'];
    replyId = json['replyId'];
    userId = json['userId'];
    toUser = json['toUser'];
    time = json['time'];
    number = json['number'];
    state = json['state'];
    content = json['content'];
    user = json['user'] != null ? new GMAnimaCommentUser.fromJson(json['user']) : null;
    files = json['files'];
    reply = json['reply'];
    cart = json['cart'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['publishId'] = this.publishId;
    data['replyId'] = this.replyId;
    data['userId'] = this.userId;
    data['toUser'] = this.toUser;
    data['time'] = this.time;
    data['number'] = this.number;
    data['state'] = this.state;
    data['content'] = this.content;
    if (this.user != null) {
      data['user'] = this.user!.toJson();
    }
    data['files'] = this.files;
    data['reply'] = this.reply;
    data['cart'] = this.cart;
    return data;
  }
}

class GMAnimaCommentUser {
  String? id;
  String? name;
  String? head;
  String? label;
  String? reason;
  String? tagline;
  String? tally;

  GMAnimaCommentUser(
      {this.id,
      this.name,
      this.head,
      this.label,
      this.reason,
      this.tagline,
      this.tally});

  GMAnimaCommentUser.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    head = json['head'];
    label = json['label'];
    reason = json['reason'];
    tagline = json['tagline'];
    tally = json['tally'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['head'] = this.head;
    data['label'] = this.label;
    data['reason'] = this.reason;
    data['tagline'] = this.tagline;
    data['tally'] = this.tally;
    return data;
  }
}
